package com.jkc.xh.models;

/**
 * Created by zhangbreeze on 16/1/29.
 */
public class RedbagModel {
    public int id;
    public Long create_time;
    public String giver_uname;
    public String remark;
    public String type;
    public String amount;
    public int open_status;

    public String getStatus() {
        if (open_status == 1) {
            return "已领取";
        } else {
            return "未领取";
        }
    }

    public boolean isOpen(){
        if (open_status == 1) {
            return true;
        } else {
            return false;
        }
    }

    /**
     * {
     "id" : "红包序号",
     "create_time" : "发生时间",
     "giver_uname" : "来自",
     "remark" : "备注",
     "type" : "红包类型，抵用券或现金",
     "amount" : "金额",
     "open_status" : "是否打开，1=已领取，0=未领取"
     }
     */
}
